Stil borderLeftColor Özellik
Örnek
Bir <div> öğesinin sol kenarlığının rengini kırmızı olarak değiştirin:
document.getElementById("myDiv").style.borderLeftColor = "red";
Tanım ve Kullanım
borderLeftColor özelliği, bir öğenin sol kenarlığının rengini ayarlar veya döndürür.
Tarayıcı Desteği
Property | |||||
---|---|---|---|---|---|
borderLeftColor | Yes | Yes | Yes | Yes | Yes |
Sözdizimi
borderLeftColor özelliğini döndürün:
object.style.borderLeftColor
borderLeftColor özelliğini ayarlayın:
object.style.borderLeftColor = "color|transparent|initial|inherit"
Mülk değerleri
Value | Description |
---|---|
color | Specifies the color of the left border. Look at CSS Color Values for a complete list of possible color values. Default color is the current color of the element |
transparent | The color of the left border is transparent (underlying content will shine through) |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Teknik detaylar
Varsayılan değer: | mevcut renk |
---|---|
Geri dönüş değeri: | Bir öğenin sol kenarlığının rengini temsil eden bir Dize |
CSS Sürümü | CSS1 |
Daha fazla örnek
Örnek
Bir <div> öğesinin sol kenarlık rengini döndür:
alert(document.getElementById("myDiv").style.borderLeftColor);
İlgili Sayfalar
CSS eğitimi: CSS Sınırı
CSS referansı: border-sol-color özelliği
HTML DOM referansı: border özelliği