<table align="center" width="300px" cellspacing="0" cellpadding="0" style="border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;background: url(http://www.hubilo.com/theme/6/img/ribbon1.png); background-size: 300px 30px; background-position: center; background-repeat: no-repeat; background-color:green;">
<tr>
<td>
<p style="color:#000000; text-align: center; font-weight:100 !important; text-transform: uppercase; font-style: normal; letter-spacing: 1px; font-size: 12px; line-height:30px; font-family: \Montserrat\', sans-serif;">SUNDAY 6TH DECEMBER, 2015</p>
</td>
</tr>
</table>
当我在Gmail中看到时,它看起来像这样。
如果我写两个日期,那么它就超出了图像。
我该如何解决?
答案 0 :(得分:0)
这是你要找的吗?
尝试提供#include <iostream>
#include <type_traits>
class IAnimal {
public:
// Interface that needs to be implemented
std::string sound() const = delete;
protected:
IAnimal(){}
};
class Cat : public IAnimal {
public:
// Implements deleted method
std::string sound() const {
return std::string("Meow");
}
};
class WildCat : public Cat {
public:
// Overwrites Cat sound method
std::string sound() const {
return std::string("Rarr");
}
};
class Dog : public IAnimal{
public:
// Implements deleted method
std::string sound() const {
return std::string("Wuff");
}
};
class Car {
public:
// Implements deleted method
std::string sound() const {
return std::string("Brum");
}
};
// Sfinae tests for proper inheritance
template<class TAnimal,
typename = std::enable_if_t<std::is_base_of<IAnimal, TAnimal>::value> >
void listenTo(TAnimal const & a ) {
std::cout << a.sound() << std::endl;
}
int main(){
// Objects of type IAnimal can not be instanciated
// IAnimal a;
// Cats and Dogs behave like IAnimals
Cat cat;
WildCat wildCat;
Dog dog;
Car car;
listenTo(cat);
listenTo(wildCat);
listenTo(dog);
// A car is no animal -> compile time error
// listenTo(car);
return 0;
}
,然后您可以轻松添加两个日期。
要么
你可以尝试增加身高。
点击此处:
width: 100%
&#13;
答案 1 :(得分:0)
你可以在这种情况下设置条件。
例如,如果您有一个日期,那么根据您的需要提供width
,当您有两个日期时,请分别提供width
。< / p>
这可能会解决您的问题。