Stil borderBottomColor Özellik
Örnek
Bir <div> öğesinin alt kenarlığının rengini kırmızı olarak değiştirin:
document.getElementById("myDiv").style.borderBottomColor = "red";
Aşağıda daha fazla "Kendiniz Deneyin" örnekleri.
Tanım ve Kullanım
borderBottomColor özelliği, bir öğenin alt kenarlığının rengini ayarlar veya döndürür.
Tarayıcı Desteği
Tablodaki sayılar, özelliği tam olarak destekleyen ilk tarayıcı sürümünü belirtir.
Property | |||||
---|---|---|---|---|---|
borderBottomColor | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
Sözdizimi
borderBottomColor özelliğini döndürün:
object.style.borderBottomColor
borderBottomColor özelliğini ayarlayın:
object.style.borderBottomColor = "color|transparent|initial|inherit"
Mülk değerleri
Value | Description |
---|---|
color | Specifies the color of the bottom 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 bottom 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 elemanın alt kenarlığının rengini temsil eden bir Dize |
CSS Sürümü | CSS1 |
Daha fazla örnek
Örnek
Bir <div> öğesinin alt kenarlık rengini döndür:
alert(document.getElementById("myDiv").style.borderBottomColor);
İlgili Sayfalar
CSS eğitimi: CSS Sınırı
CSS referansı: border-bottom-color özelliği
HTML DOM referansı: border özelliği